Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code to split blocks and update edges #10

Merged
merged 1 commit into from
Aug 2, 2024
Merged

Conversation

dkhofer
Copy link
Collaborator

@dkhofer dkhofer commented Aug 1, 2024

No description provided.

@@ -38,7 +38,7 @@ CREATE TABLE block (
strand TEXT NOT NULL DEFAULT "1",
FOREIGN KEY(sequence_hash) REFERENCES sequence(hash),
FOREIGN KEY(block_group_id) REFERENCES block_group(id),
constraint chk_strand check (strand in ('-1', '1', '0', '.', '?'))
constraint chk_strand check (strand in ('-1', '1', '0', '.', '?', '+', '-'))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on the db side, we probably should not use +/- if we have 1/-1

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's actually drop the -1/1/0 for the gff standards

chromosome_index: i32,
phased: i32,
) -> Option<(Block, Block)> {
if coordinate < block.start || coordinate >= block.end {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think we should panic here instead

@Chris7 Chris7 merged commit 64716f0 into main Aug 2, 2024
1 check passed
@Chris7 Chris7 deleted the block-splitting branch August 2, 2024 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants